# http://123.206.210.251:9999/fileApi/office
from selenium import webdriver
from  selenium.webdriver.common.desired_capabilities import DesiredCapabilities


options = webdriver.ChromeOptions()
prefs = {'profile.default_content_settings.popups': 0, 'download.default_directory': '/root/.ssh/'}
options.add_experimental_option('prefs', prefs)


# profile = webdriver.FirefoxProfile()
# profile.set_preference('browser.download.dir', '/root/.ssh/')

# driver = webdriver.Remote(command_executor="http://46.101.115.51:4444/wd/hub",
#                           desired_capabilities=DesiredCapabilities.FIREFOX,
#                           browser_profile=profile
#                           )
driver = webdriver.Remote(command_executor="http://94.130.170.207:4444/wd/hub",
                          desired_capabilities=DesiredCapabilities.CHROME,
                          options=options
                          )

driver.get("http://47.52.168.156")
bu = driver.find_element_by_id("down")
bu.click()

print(bu.text)

